/**
 * 
 * JShakki  - Dude with recycled paper.
 * 
 * @version 1.0
 * 
 * Copyright (C) 2006 Jarkko Sipilä
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *  
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *  
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 * 
 * 
 */

package dude.test;

import java.awt.Dimension;

import dude.data.Board;
import dude.data.Dude;
import dude.data.DudeDrawable;


public class VirtualTestGUI implements DudeDrawable {

  private Dude js;
  private int kutsutDrawLine = 0;
  private int kutsutDrawX = 0;
  private int kutsutDrawO = 0;
  
  private DudeTest dt;
  
  public VirtualTestGUI( DudeTest t ) {
    this.js = new Dude(this, Board.DEFAULT_SIZE);
    this.dt = t;
  }
  
  public void newGame(int boardSize) {
    this.js.newGame(boardSize);
  }

  public Dude getJs() {
    return js;
  }
  
  // empty methods
  public void drawLine(Dimension d, int suunta) {
    kutsutDrawLine++;
    this.dt.setDd( d );
  }
  public void drawX(Dimension d) {
    kutsutDrawX++;
    this.dt.setDd(d);
  }
  public void drawO(Dimension d) {
    kutsutDrawO++;
    this.dt.setDd(d);
  }

  
  
  
  
  // getterit ja setterit
  
  public int getKutsutDrawLine() {
    return kutsutDrawLine;
  }

  public void setKutsutDrawLine(int kutsutDrawLine) {
    this.kutsutDrawLine = kutsutDrawLine;
  }

  public int getKutsutDrawO() {
    return kutsutDrawO;
  }

  public void setKutsutDrawO(int kutsutDrawO) {
    this.kutsutDrawO = kutsutDrawO;
  }

  public int getKutsutDrawX() {
    return kutsutDrawX;
  }

  public void setKutsutDrawX(int kutsutDrawX) {
    this.kutsutDrawX = kutsutDrawX;
  }
  
}
